package com.wg.leetcode.leetpool.example28_Strstr;

/**
 * 1. BF(Brute Force)算法 也称暴力算法
 * 两个字段匹配位置
 */
public class BruteForce {
    public static void main(String[] args) {

    }


    public int getIndexPath(String source,String target){
        int i=0;
        for (int k=0;k<target.length();k++){

        }
        while (i<source.length()){
            int j=0;
            while (j<target.length()){
                if(source.charAt(i+j)!=target.charAt(j)){

                    break;
                }
            }

        }

        return 0;
    }


}
